| Module | WebmasterTools::Verification::Generator::Create |
| In: |
lib/webmaster_tools/verification.rb
|
called from script/generate webmaster_verification
called from script/generate webmaster_verification -p
Adds the route to config/routes.rb
# File lib/webmaster_tools/verification.rb, line 23
23: def route_webmaster_verification
24: logger.route "map.website_verification"
25: sentinel = 'ActionController::Routing::Routes.draw do |map|'
26: unless options[:pretend]
27: gsub_file('config/routes.rb', /(#{Regexp.escape(sentinel)})/mi){|match| "#{match}\n map.webmaster_verification\n"}
28: end
29: end